<%
	import java.util.UUID;
	import com.gmongo.GMongo
	import com.db.Config;
	def mongo = new GMongo(Config.dbip,Config.dbport)
	def db = mongo.getDB(Config.dbname)
	def  message =[
			user:request.getParameter('user'), 
			name:request.getParameter('name'),
			psw:request.getParameter('psw'), 
			type:request.getParameter('type'),
			key:UUID.randomUUID().toString()
			]
	message<<[state:1]<<[_table:Config.SENDER_EMAIL_MESSAGE]
	com.db.MongoDb.insert(message)
	println message 
%>
 